package com.xuzao.developer.constants;

import java.math.BigDecimal;
import java.text.DecimalFormat;

/**
 * 全局常量
 *
 * @author log.r   (;￢＿￢)   
 * @date 2018-08-24 上午10:02
 **/
public class Constants {

    public static final String CHAR_SET = "utf-8";

    /**
     * 默认系统账号
     */
    public static final Long DEFAULT_SYSTEM_USER = 999L;

    /**
     * 无效顺序号
     */
    public static final Integer INVALID_SEQUENCENUMBER = -1;



    /**
     * 导入excel行数限制
     */
    public static final Integer EXCEL_ROW_LIMIT = 50;

    /**
     * 导入excel行数限制 2000条
     */
    public static final Integer EXCEL_ROW_LIMIT_2000 = 2001;



    /**
     * 字符串类型
     */
    public static final String STRING_TYPE = "String";

    /**
     * 数字类型
     */
    public static final String INTEGER_TYPE = "Integer";

    /**
     * 长整型
     */
    public static final String LONG_TYPE = "Long";

    /**
     * 大数据类型
     */
    public static final String BIGDECIMAL_TYPE = "BigDecimal";

    /**
     * 金额小数点保留位数
     */
    public static final Integer AMOUNT_OF_DECIMALPOINT_RESERVED = 2;

    /**
     * 小数点保留位数
     */
    public static final Integer AMOUNT_KEEP_INTEGERS = 0;

    /**
     * 整数最大位数
     */
    public static final Integer MAXIMUM_NUMBER_OF_INTEGERS = 10;

    /**
     * 整数最大位数
     */
    public static final Integer MAXIMUM__PICKING_SHEIF_SORT = 5;

    /**
     * 乐观锁版本号
     */
    public static final String VERSION_INITIALVALUE = "0";

    /**
     * 分布式锁重试次数
     */
    public static final Integer RETRIES_NUMBER = 3;

    /**
     * 重试间隔
     */
    public static final Integer RETRY_INTERVAL = 200;

    /**
     * 新增验证类型
     */
    public static final Integer VERITY_TYPE_INSERT = 1;

    /**
     * 修改验证类型
     */
    public static final Integer VERITY_TYPE_UPDATE = 2;

    /**
     * 百分号
     */
    public static final String PERCENTAG_NUMBER = "%";

    /**
     * 税率默认0.16
     */
    public static final BigDecimal TAX_RATE = new BigDecimal("0.16");

    /**
     * 库位顺序号后半部分最大值
     */
    public static final Integer LOCATION_ORDER_MAX_VALUE = 9999;

    /**
     * 库位顺序号后半部分最小值
     */
    public static final String LOCATION_ORDER_MIN_VALUE = "0101";

    /**
     * 库位后半部分补零策略
     */
    public static final DecimalFormat LOCATION_ORDER_FORMAT = new DecimalFormat("0000");

    /**
     * 库位顺序号初始值
     */
    public static final String LOCATION_ORDER_INIT_VALUE = "AA-01-01";

    /**
     *  100的BigDecimal
     */
    public static final BigDecimal BD_00 = new BigDecimal("100");

    /**
     * 路径
     */
    public final static String CATEGORY_PATH = "/";

    /**
     * 页数常量
     */
    public final static int DEFAULT_PAGE_INDEX = 0;
    public final static int DEFAULT_PAGE_SIZE = 10;


    public final static String ID = "id";

    public static final Integer ZERO = 0;

    public static final Integer ONE = 1;
    public static final Integer TWO = 2;
    public static final Integer THREE = 3;
    public static final Integer FOUR = 4;
    public static final Integer FIVE = 5;

    public final static String ENDLABLE = "666666";



    public static final Long WAREHOUSEID = 11111111111L;
}
